package lhdx9;

public class WuLing extends Automobile {
    private String namew;
    public WuLing(String yangS, String cheP,String namew) {
        super(yangS, cheP);
        this.namew=namew;
    }

    public String getNamew() {
        return namew;
    }

    public void setNamew(String namew) {
        this.namew = namew;
    }
    public void print(){
        System.out.println("这辆轿车是"+namew);
        super.print();
        System.out.println("可以拉货！");
    }
}
